﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using CCWin;

namespace MDF
{
    /// <summary>
    /// 获取属性映射的名称
    /// </summary>
    public partial class SXPPYSMZ : CCSkinMain
    {
        /// <summary>
        /// 
        /// </summary>
        public SXPPYSMZ()
        {
            InitializeComponent();
        }

        /// <summary>
        /// 返回用户输入的名称
        /// </summary>
        /// <returns></returns>
        public string GetName()
        {
            try
            {
                if (!string.IsNullOrEmpty(Name_Text.Text))
                {
                    return Name_Text.Text.ToString();
                }
                else
                {
                    return null;
                }
            }
            catch (Exception)
            {
                throw;
            }
        }
        /// <summary>
        /// 属性映射的确定
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void OK_Button_Click(object sender, EventArgs e)
        {
            try
            {
                if (!string.IsNullOrEmpty(Name_Text.Text))
                {
                    this.DialogResult = DialogResult.OK;
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
    }
}
